Skip to content

Free Gemma text encoder after caption embedding to reduce VRAM during training#85

Open
bruefire wants to merge 1 commit intoLightricks:mainfrom
bruefire:perf/free-gemma-after-captions
Open

Free Gemma text encoder after caption embedding to reduce VRAM during training#85
bruefire wants to merge 1 commit intoLightricks:mainfrom
bruefire:perf/free-gemma-after-captions

Conversation

@bruefire
Copy link

This frees the Gemma text encoder after captions are processed
so VRAM is released before video latents are encoded.

Helpful on GPUs with limited VRAM where process_dataset can OOM.

Files: scripts/process_captions.py

@bruefire bruefire changed the title Free Gemma text encoder after caption embedding to reduce VRAM Free Gemma text encoder after caption embedding to reduce VRAM during training Jan 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant